package com.cj.pj.sys.controller;

import com.cj.pj.sys.common.pojo.JsonResult;
import com.cj.pj.sys.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class SysLogController {
    @Autowired
    SysLogService sysLogService;

    @RequestMapping("getPageObject")
    public JsonResult getPageObject(Integer currentPage,String username){
        return new JsonResult(sysLogService.findPageObject(currentPage,username));
    }

    @RequestMapping("deleteById")
    public JsonResult deleteById(Integer... ids) {
        return new JsonResult(sysLogService.deleteById(ids));
    }


}
